//
//  XMMemberDescCollectionViewCell.m
//  XunMi
//
//  Created by MacBook on 2024/4/17.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMMemberDescCollectionViewCell.h"
#import "XMMemberModel.h"

@interface XMMemberDescCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imgV;
@property (weak, nonatomic) IBOutlet UILabel *titleLa;
@property (weak, nonatomic) IBOutlet UILabel *descLa;
@property (weak, nonatomic) IBOutlet UIImageView *tipImgV;

@end

@implementation XMMemberDescCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(XMMemberItemModel *)model {
    _model = model;
    [self.imgV sd_setImageWithURL:kStringToUrl(model.icons) placeholderImage:kDefaultCoverImg];
    self.titleLa.text = model.title;
    self.descLa.text = model.intro;
    self.tipImgV.hidden = model.goods.count == 0;
}

@end
